<!doctype html>
<html class="no-js fixed-layout">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>fangShop 商城系统</title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>" id="token">

    <link rel="icon" type="image/png" href="/favicon.ico">
    <?php /*<link rel="apple-touch-icon-precomposed" href="/assets/i/app-icon72x72@2x.png">*/ ?>
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <link rel="stylesheet" href="/AmazeUI/assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="/AmazeUI/assets/css/admin.css">
    <link rel="stylesheet" href="/assets/css/xSystem.css">
    <link rel='stylesheet' href='/assets/vendor/nprogress/nprogress.css'/>
</head>
<body>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
    以获得更好的体验！</p>
<![endif]-->

<header class="am-topbar am-topbar-inverse admin-header">
    <div class="am-topbar-brand">
        <strong>fangShop</strong> <small>后台管理系统</small>
    </div>

    <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>

    <div class="am-collapse am-topbar-collapse" id="topbar-collapse">

        <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">
            <li>
                <div class="am-dropdown" data-am-dropdown style="line-height: 50px;">

                    <button class="am-selected-btn am-btn am-dropdown-toggle am-btn-sm am-btn-danger" data-am-dropdown-toggle><?php /*fangShop后台管理*/ ?> <span class="am-icon-caret-down"></span></button>
                    <ul class="am-dropdown-content">

                        <?php /* <li><a href="/shop">fangShop小卖部</a></li>
                         <li class=""><a href="#">php武汉官网</a></li>
                         <li><a href="#">学生管理</a></li>
                         <li><a href="/ads">广告中心</a></li>
                         */ ?><?php /*<li class="am-disabled"><a href="#">就站在光明的角落</a></li>*/ ?><?php /*
                         <li class="am-divider"></li>
                         <li><a href="/system">系统管理</a></li>*/ ?>
                        <?php foreach($systems as $url=>$system): ?>

                            <li><a href="/<?php echo e($url); ?>"><?php echo e($system); ?></a></li>
                            </option>
                        <?php endforeach; ?>
                    </ul>
                </div>
            </li>
            <?php /* <li><a href="javascript:;"><span class="am-icon-envelope-o"></span> 收件箱 <span class="am-badge am-badge-warning">5</span></a></li>*/ ?>
            <li class="am-dropdown" data-am-dropdown>
                <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
                    <span class="am-icon-users"></span><?php echo e(Auth::user()->name); ?> 管理员 <span class="am-icon-caret-down"></span>
                </a>
                <ul class="am-dropdown-content">
                    <li><a href="#"><span class="am-icon-user"></span> 资料</a></li>
                    <li><a href="#"><span class="am-icon-cog"></span> 设置</a></li>
                    <li><a href="<?php echo e(url('/admin/logout')); ?>"><span class="am-icon-power-off"></span> 退出</a></li>
                </ul>
            </li>
            <li class="am-hide-sm-only"><a href="javascript:;" id="admin-fullscreen"><span class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a></li>
        </ul>
    </div>
</header>

<div id="app" style="height: 100%">
    <div class="am-cf admin-main">
        <!-- sidebar start -->
        <div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
            <div class="am-offcanvas-bar admin-offcanvas-bar">
                <ul class="am-list admin-sidebar-list">
                    <menu></menu>
                </ul>

                <div class="am-panel am-panel-default admin-sidebar-panel">
                    <div class="am-panel-bd">
                        <p><span class="am-icon-bookmark"></span> 思考</p>
                        <p>111</p>
                    </div>
                </div>
                <div class="am-panel am-panel-default admin-sidebar-panel">
                    <div class="am-panel-bd">
                        <p><span class="am-icon-tag"></span> Holy Bible</p>
                        <p>222</p>
                    </div>
                </div>
            </div>
        </div>
        <!-- sidebar end -->

        <!-- content start -->
        <router-view></router-view>
        <!-- content end -->
    </div>
</div>


<script src="/AmazeUI/assets/js/jquery.min.js"></script>
<script src='/assets/vendor/nprogress/nprogress.js'></script>
<script src="/AmazeUI/assets/js/amazeui.min.js"></script>

<script src="/assets/js/laravel.js"></script>
<?php /*<script src="/assets/js/xSystem.js"></script>*/ ?>

<script src="/assets/js/jquery.html5-fileupload.js"></script>
<script src="/assets/vendor/ckfinder/ckfinder.js"></script>


<script src="/js/main.js"></script>

<script type="text/javascript">
    $.ajaxSetup({
        headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        }
    });

    $(function(){

        //下拉列表
        var system='<?php echo e($_system); ?>';  //取得当前是哪个系统
       console.log(system);
        var button_text=$('a[href="/<?php echo e($_system); ?>"]').eq(0).text();
        var html='<span class="am-icon-caret-down"></span>';
        $('.am-btn-danger').text(button_text).append(html);

        $('.am-dropdown-content').children().click(function(){

            $(this).addClass('am-active').siblings().removeClass('am-active');

        })


        //侧边栏点击样式改变

        $('.admin-sidebar-list').children().click(function(){
            $(this).siblings().children().removeClass('am-active');
            $(this).children().addClass('am-active');
        })
    })

</script>
</body>
</html>



